import time
import logging
import Toolshiwu
import pytest
from selenium.webdriver.common.by import By
from selenium import webdriver
import unittest

class A3mall(unittest.TestCase):

    def setUp(self) -> None:
        Toolshiwu.Log1()
        self.driver=webdriver.Firefox()
        self.driver.get('http://10.59.9.12:7001/')
        self.driver.maximize_window()


    def tearDown(self) -> None:
        time.sleep(3)
        self.driver.quit()

    def test_a3mall_01(self):
        logging.info('start.case')
        self.driver.find_element(By.XPATH,'/html/body/div[1]/div/div[2]/ul/li[1]/a').click()
        time.sleep(3)
        self.driver.find_element(By.NAME,'username').send_keys('13811033962')
        self.driver.find_element(By.NAME,'password').send_keys('123456')
        time.sleep(15)
        self.driver.find_element(By.CLASS_NAME,'finish-btn').click()
        time.sleep(4)
        logging.info('case.end')




